{template 'common/header'}
<link rel="stylesheet" href="https://cdn.oss.664773288.com/fan_xiao/layui/css/layui.css">
<style>
    .table thead tr th{
        text-align: center;
    }
    .table tbody tr td{
        text-align: center;
        vertical-align: middle;
    }
    .sort-width{
        width: 120px;
    }
</style>
<div class="container-fluid">
    <div class="row-fluid">
        <form class="layui-form form-common" role="form" action="{php echo $this->createWebUrl('ncovadd') . '&aid=' . $_GPC['aid'];}" method="POST" enctype="multipart/form-data">
            <div class="col-md-12">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">
                            地图设置
                        </h3>
                    </div>
                    <div class="panel-body">
                        <div class="form-group">
                            <label for="firstname" class="col-sm-2 control-label">区域选择</label>
                            <div class="col-sm-8">   
                                {if $ncovres}
                                    {php echo tpl_form_field_coordinate('district',['lat' => $ncovres['lat'],'lng' => $ncovres['lng']])}
                                {else}
                                    {php echo tpl_form_field_coordinate('district')}
                                {/if}
                                
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="lastname" class="col-sm-2 control-label">病例信息</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" name="findtext" placeholder="请输入病例信息" value="{if $ncovres }{$ncovres['findtext']}{/if}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="lastname" class="col-sm-2 control-label">详细地址</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" name="address"" placeholder="请输入详细地址" value="{if $ncovres }{$ncovres['address']}{/if}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="firstname" class="col-sm-2 control-label">时间</label>
                            <div class="col-sm-8">
                                {if $activityInfo}
                                    {php echo tpl_form_field_date('findtime', '', true); }
                                {else}
                                    {php echo tpl_form_field_date('findtime', '', true); }
                                {/if}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-4 col-sm-4">
                    <button class="layui-btn btn-sbt" style="width:100%;">保存</button>
                </div>
            </div>
        </form>
    </div>
</div>
{template 'common/footer'}

